#pragma once

#include "Socket.h"
#include "Thread.h"

namespace Core
{
	class TCPServer : public Thread
	{
	private:
		Socket m_Socket;
		unsigned short m_PortNumber;

		void Execute();

	public:
		TCPServer(unsigned short p_PortNumber);
		void InitializeSocket();

		virtual void ConnectionReceived(Socket& p_Socket);
	};
}
